package com.spring.demo.mybatis.config;

import com.spring.demo.mybatis.mapper.UserDO;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author zhangyan
 * @version $ Id: MyFactory.java, v 0.1 2020/9/27 13:52 zhangyan Exp $
 */
public class MyFactoryBean implements FactoryBean<UserDO> {
	@Override
	public UserDO getObject() throws Exception {
		return new UserDO();
	}

	@Override
	public Class<?> getObjectType() {
		return UserDO.class;
	}

	@Override
	public boolean isSingleton() {
		return true;
	}
}
